package cn.itcast.quartz.demo;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import java.util.Date;

/**
 * Created by Think on 2017/9/25.
 */
public class HelloJob implements Job {

    // 任务调度（查询数据库，清理缓存，查看日志）
    public void execute(JobExecutionContext context) throws JobExecutionException {
        System.out.println("开始执行任务调度：当前时间是："+new Date());
    }
}
